package com.jinyuan.options.homepage.service;

import org.json.JSONException;
import org.json.JSONObject;

import android.os.Message;

import com.android.threadpool.Task;
import com.jinyuan.service.ParentHandlerService;

/**
 * 
 * 
 * @author azuryleaves
 * @since 2014-1-8 上午11:49:52
 * @version 1.0
 *
 */
public class HomePageService {

	/**
	 * 教学动态-详情
	 * @param task
	 * @param message
	 */
	public static void getHomePage(Task task, Message message) {
		String result = ParentHandlerService.get(task, message);
		if (result != null && !"".equals(result)) {
			try {
				JSONObject jsonObject = new JSONObject(result);
				message.obj = jsonObject;
			} catch (JSONException e) {
				message.obj = null;
				e.printStackTrace();
			}
		} else {
			message.obj = null;
		}
	}
	
}
